package org.ly817.falsework.manager.web.rest;

//import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.config.annotation.Reference;
import org.ly817.falsework.api.entity.User;
import org.ly817.falsework.api.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LuoYu
 * @date 2018/07/27 9:00
 * <p>
 * Description:
 * REST demo controller
 */
@RestController("rDemoController")
@RequestMapping("/rest/demo")
public class DemoController {
    @Reference
    private UserService userService;

    @GetMapping("/test")
    public User test() {
        return userService.test(new User());
    }
}
